package zut.edu.cn.concertticketmanagementsystem.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import zut.edu.cn.concertticketmanagementsystem.dto.OrderDTO;
import zut.edu.cn.concertticketmanagementsystem.entity.OrderForm;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: heroma
 * Date: 6/22/19
 * Time: 4:35 PM
 * Description: No Description
 */
public interface OrderFormService {
    //创建订单
    OrderDTO creat(OrderDTO orderDTO);
    //查询单个订单
    OrderDTO findOne(String orderId);
    //查询订单列表
    List<OrderForm> findList(String buyerName);
    //取消订单
    OrderDTO cancel(OrderDTO orderDTO);
    //完结订单
    OrderDTO finish(OrderDTO orderDTO);
    //支付订单
    OrderDTO paid(OrderDTO orderDTO);
    //查询订单列表
    List<OrderForm> list();
    void deleteByOrderId(String orderId);
}
